<?php
/**
 * 员工配置
 */
$GLOBALS['G'] += array(
	
	'staff_max_lvl' => 100,// 员工等级上限
	'potential_max_lvl' => 100,// 员工潜力等级上限
	'init_max_recipe_num' => 3,// 员工初始的最大配方数量

	'max_abi_val' => 2000,// 能力值上限

//	'get_pk_prize_giveup_card_ticket'

	'init_abi_val' => array(5,10),
	'init_abi_val_total' => 70,

	'init_train_times' => 5,// 员工初始培训次数
	'train_add_val' => array(1, 3),

	// 完美培训机率
//	'perfect_train_rate' => array(
//		0  => 0,
//		1  => 1,
//		2  => 2,
//		3  => 3,
//		4  => 4,
//		5  => 5,
//		6  => 6,
//		7  => 7,
//		8  => 8,
//		9  => 9,
//		10 => 10,
//	),
	// 测试用
	'perfect_train_rate' => array(
		0  => 0,
		1  => 60,
		2  => 60,
		3  => 70,
		4  => 80,
		5  => 80,
		6  => 80,
		7  => 80,
		8  => 80,
		9  => 90,
		10 => 80,
	),
	
	// 员工状态值随机范围
	'staff_state_val' => array(30, 100),
	'refresh_state_val_base_coin' => 500,
	
	// 卡片配置
	'card_lvl_attr' => array(
		0 => array(
			'win'	=> 0.05,
			'lose'	=> 0.05,
		),
		1 => array(
			'win'	=> 0.08,
			'lose'	=> 0.10,
			'use_item' => 10011,
		),
		2 => array(
			'win'	=> 0.16,
			'lose'	=> 0.20,
			'use_item' => 10012,
		),
		3 => array(
			'win'	=> 0.12,
			'lose'	=> 0.30,
			'use_item' => 10013,
		),
		4 => array(
			'win'	=> 0.20,
			'lose'	=> 0.40,
			'use_item' => 10014,
		),
		5 => array(
			'win'	=> 0.25,
			'lose'	=> 0.50,
			'use_item' => 10015,
		),
	),
	
	// 三种卡片胜负关系
	'card_pk_result' => array(
		10021 => 10022,// 石头胜剪刀
		10022 => 10023,// 剪刀胜布
		10023 => 10021,// 布胜石头
	),

	// PK结果字符串标志对应的数值ID
	'pk_result_sign_id' => array(
		'win'	=> 1,
		'deuce'	=> 2,
		'loss'	=> 3,
	),
	'pk_result_sign_list' => array (
		1 => 'win',
		2 => 'deuce',
		3 => 'loss',
	),
	'pk_times_per_day' => 6,//每天可以PK次数
	'staff_pk_bout' => 5,//PK回合数
	'pk_score_range' => array(98, 102),//PK每回合评分的随机范围
	'pk_prize_choice_num' => 5,// PK奖励物品选择数量
	'pk_prize_max_num' => 3,//PK奖励每种物品最多出现的次数
	'pk_prize_base' => array(//PK奖品的抽取比例基数
		51 => 3,
		52 => 2,
		53 => 2,
		99 => 4,
		54 => 2,
	),
	// PK不同类型物品的机率
	'pk_prize_rate' => array(
		'sec_mat'	=> 20,
		'equip'		=> 20,
		'gem'		=> 20,
		'coin'		=> 20,
		'card'		=> 20,
	),
	// 获取PK奖励丢弃卡片数量对应消耗的点券
	'get_pk_prize_nochioce_ticket' => array(
		// 丢弃数量 => 点券数量
		0 => 0,
		1 => 10,
		2 => 20,
		3 => 40,
		4 => 80,
	),
	
	// PK奖励的不同类型物品列表
	'pk_prize' => array(
		'sec_mat' => array(
			'name' => '辅材',
			'rate' => 3,
			'detail' => array(
				'1' => array(
					'win' => 50, 
					'deuce' => 70,
					'loss' => 90
				),
				'2' => array(
					'win' => 50, 
					'deuce' => 30,
					'loss' => 10
				),
			),
		),
		'equip' => array(
			'name' => '装备',
			'rate' => 1,
			'detail' => array(
				'white' => array(
					'win' => 30, 
					'deuce' => 70,
					'loss' => 90
				),
				'green' => array(
					'win' => 35, 
					'deuce' => 20,
					'loss' => 10
				),
				'blue' => array(
					'win' => 25, 
					'deuce' => 10,
					'loss' => 0
				),
				'purple' => array(
					'win' => 10, 
					'deuce' => 0,
					'loss' => 0
				),
			),
		),
		'gem' => array(
			'name' => '宝石',
			'rate' => 2,
			'detail' => array(
				1 => array(
					'win' => 35, 
					'deuce' => 65,
					'loss' => 90
				),
				2 => array(
					'win' => 30, 
					'deuce' => 20,
					'loss' => 10
				),
				3 => array(
					'win' => 20, 
					'deuce' => 10,
					'loss' => 0
				),
				4 => array(
					'win' => 10, 
					'deuce' => 5,
					'loss' => 0
				),
				5 => array(
					'win' => 5, 
					'deuce' => 0,
					'loss' => 0
				),
			),
		),
		'coin' => array(
			'name' => '金钱',
			'rate' => 4,
			'detail' => array(
				100 => array(
					'win' => 10, 
					'deuce' => 30,
					'loss' => 50
				),
				200 => array(
					'win' => 20, 
					'deuce' => 30,
					'loss' => 50
				),
				500 => array(
					'win' => 30, 
					'deuce' => 20,
					'loss' => 0
				),
				1000 => array(
					'win' => 20, 
					'deuce' => 15,
					'loss' => 0
				),
				2000 => array(
					'win' => 20, 
					'deuce' => 5,
					'loss' => 0
				),
			),
		),
		'card' => array(
			'name' => '卡片',
			'rate' => 2,
			'detail' => array(
				1 => array(
					'win' => 10, 
					'deuce' => 40,
					'loss' => 60
				),
				2 => array(
					'win' => 30, 
					'deuce' => 30,
					'loss' => 30
				),
				3 => array(
					'win' => 60, 
					'deuce' => 30,
					'loss' => 10
				),
			),
		),
	),
	
	
	'pk_min_abi' => 0.8,//PK简单的对手能力最少百分比
	'pk_max_abi' => 1.2,//PK简单的对手能力最大百分比
//	'pk_middling_min_abi' => 1,//PK简单的对手能力最少百分比
//	'pk_middling_max_abi' => 1.1,//PK简单的对手能力最大百分比
//	'pk_difficult_min_abi' => 1.2,//PK简单的对手能力最少百分比
//	'pk_difficult_max_abi' => 1.5,//PK简单的对手能力最大百分比

	// 潜力等级配置
	'potential_lvl_list' => array(
		0 => array(// 初始
			'need_exp'	=> 700, // 升级所需经验
			'need_coin' => 10000, // 深造需要的金钱
			'min_quality' => 2400, // 最低主材品质总和要求
		),
		1 => array(
			'need_exp'	=> 2900, // 升级所需经验
			'need_coin' => 20000, // 深造需要的金钱
			'min_quality' => 2800, // 最低主材品质总和要求
		),
		2 => array(
			'need_exp'	=> 6000, // 升级所需经验
			'need_coin' => 30000, // 深造需要的金钱
			'min_quality' => 3200, // 最低主材品质总和要求
		),
		3 => array(
			'need_exp'	=> 10300, // 升级所需经验
			'need_coin' => 40000, // 深造需要的金钱
			'min_quality' => 3600, // 最低主材品质总和要求
		),
		4 => array(
			'need_exp'	=> 15800, // 升级所需经验
			'need_coin' => 50000, // 深造需要的金钱
			'min_quality' => 4000, // 最低主材品质总和要求
		),
		5 => array(
			'need_exp'	=> 22700, // 升级所需经验
			'need_coin' => 60000, // 深造需要的金钱
			'min_quality' => 4400, // 最低主材品质总和要求
		),
		6 => array(
			'need_exp'	=> 31200, // 升级所需经验
			'need_coin' => 70000, // 深造需要的金钱
			'min_quality' => 4800, // 最低主材品质总和要求
		),
		7 => array(
			'need_exp'	=> 31200, // 升级所需经验
			'need_coin' => 70000, // 深造需要的金钱
			'min_quality' => 5200, // 最低主材品质总和要求
		),
		8 => array(
			'need_exp'	=> 53300, // 升级所需经验
			'need_coin' => 90000, // 深造需要的金钱
			'min_quality' => 5600, // 最低主材品质总和要求
		),
		9 => array(
			'need_exp'	=> 67200, // 升级所需经验
			'need_coin' => 100000, // 深造需要的金钱
			'min_quality' => 6000, // 最低主材品质总和要求
		),
		10 => array(
			'need_exp'	=> 0, // 升级所需经验
			'need_coin' => 0, // 深造需要的金钱
			'min_quality' => 0, // 最低主材品质总和要求
		),
	),
);
